/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sinaEx;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.SQLException;
import weibo4j.Weibo;
import weibo4j.model.WeiboException;

/**
 *
 * @author Administrator
 */
public class celebrityCollector {
    public static void main(String[] args) throws IOException, WeiboException, SQLException, InterruptedException {
        prepareWeibo();
        celebrityCollector data = new celebrityCollector();
    }

    public static void prepareWeibo() {
        String accessToken = spider.Auth4Code.getCode();
        Weibo weibo = new Weibo();
        weibo.setToken(accessToken);
    }
    public void readCelebrity() throws IOException {
        String filename = "src/sinaEx/celebrity";
        BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
        String line = reader.readLine();
        line = reader.readLine();
        while (line != null) {
            String s[] = line.split("\t");
            String id = s[1];
            String type[] = {s[2], s[3], s[4]};            
            
            line = reader.readLine();
        }
        reader.close();
    }
}
